local skel = fk.CreateSkill {
  name = "efengqi__luoyi",
}

Fk:loadTranslationTable{
  ["efengqi__luoyi"] = "裸衣",
  [":efengqi__luoyi"] = "摸牌阶段，你可以少摸一张牌，若如此做，直到你的下回合开始，" ..
  "你使用的【杀】或【决斗】造成的伤害+1；若你装备区里没有牌，你的普通【杀】" ..
  "造成的伤害+1。",

  ["@@efengqi__luoyi"] = "裸衣",

  ["$efengqi__luoyi1"] = "过来打一架，对，就是你！",
  ["$efengqi__luoyi2"] = "废话少说，放马过来吧！",
}

skel:addEffect(fk.DrawNCards, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name) and data.n > 0
  end,
  on_use = function(self, event, target, player, data)
    data.n = data.n - 1
    player.room:addPlayerMark(player, "@@efengqi__luoyi", 1)
  end,
})

skel:addEffect(fk.TurnStart, {
  can_refresh = function(self, event, target, player, data)
    return target == player
  end,
  on_refresh = function(self, event, target, player, data)
    player.room:setPlayerMark(player, "@@efengqi__luoyi", 0)
  end,
})

skel:addEffect(fk.DamageCaused, {
  anim_type = "offensive",
  is_delay_effect = true,
  can_trigger = function(self, event, target, player, data)
    return target == player and data.card and data.by_user and
      ((player:getMark("@@efengqi__luoyi") > 0 and (data.card.trueName == "slash" or data.card.name == "duel")) or
      (player:hasSkill(skel.name) and #player:getCardIds("e") == 0 and data.card.name == "slash"))
  end,
  on_use = function(self, event, target, player, data)
    if player:getMark("@@efengqi__luoyi") > 0 and (data.card.trueName == "slash" or data.card.name == "duel") then
      data:changeDamage(1)
    end
    if player:hasSkill(skel.name) and #player:getCardIds("e") == 0 and data.card.name == "slash" then
      data:changeDamage(1)
    end
  end,
})



return skel
